<?php if($recent_listing){?>

<div
	class="panel panel-info">
	<!-- Default panel contents -->
	<div class="panel-heading title text-danger"><?= lang('recent.listed');?></div>
	

	<!-- List group -->
	<ul class="list-group">
		<?php foreach ($recent_listing as $recent_listing):?>
		<li class="list-group-item clearfix"><img
			class="col-lg-3 img-rounded img-responsive" alt="Responsive image"
			src="<?=base_url();?>assets/images/photo/<?= $recent_listing->photo; ?>">

			<div class="col-lg-9">
				<p>
					<strong><a class="text-black" href="<?= base_url();?>profile/<?= $this->commoncall->url($recent_listing->title);?>-<?= $recent_listing->id;?>"><?= $recent_listing->title; ?>
					</a> </strong>
				</p>
				<div class="small text-muted">
					<strong><?php if($recent_listing->city){?>
					<?= $this->location_model->get_city_data($recent_listing->city)->cityname;?>
					<?php }?>, <?php if($recent_listing->state){?>
					<?= $this->location_model->get_region_data($recent_listing->state)->statename;?>
					<?php }?></strong>
				</div>
				<strong><?= lang('recent.area');?> :</strong> <small><?php
				$keyword = $this->listing_model->getKeywordAll($recent_listing->id,5);
				?>
				<?php if($keyword){?>
				<?php foreach($keyword as $keyword):?>
				<?= $this->listing_model->getCategory($keyword->term_value)->name;?>,
				<?php endforeach;}?></small>
				<p>
				<i class="glyphicon glyphicon-eye-open"></i> (<?= $recent_listing->hits;?>)
			</div>
		</li>

		
		<?php endforeach;?>
	</ul>
</div>


<?php }?>